class CreateUserInvitations < ActiveRecord::Migration
  def self.up
    create_table :user_invitations do |t|
      t.integer :user_id
      t.integer :invited_user_fb_uid, :default=>0
      t.index :user_id
      t.index :invited_user_fb_uid
      t.timestamps
    end
    execute("alter table user_invitations modify invited_user_fb_uid bigint")
  end
  
  def self.down
    drop_table :user_invitations
  end
end
